
import { defineStore } from 'pinia'


export const useBasicData = defineStore('indexStore', {
  state: () => {
    return { 
        data: {} 
    }
  },
  actions: {
    setData (payload) {
      console.log('执行了 actions 了')
      console.log('data  === ' + new Date().getTime())
      console.log(payload)
      this.data = payload
    }
  }
})
